#ifndef POPUPMENU_H
#define POPUPMENU_H

#include <QMenu>

class PopupMenu : public QMenu
{
    Q_OBJECT

public:
    PopupMenu( QWidget * parent );
    ~PopupMenu();
    void addItem( const QString & text, const QVariant & varData, const QString & iconStr );
    void addItem( const QString & text, const QVariant & varData );
    QVariant execAndSelectData( const QPoint & pos );

private:
    void addItem( QAction * action, const QVariant & varData );
};


#endif
